package zd.cornermemory.bean;

import java.util.List;

import zd.cornermemory.db.Cj;

/**
 * Created by zhud on 2020/7/17.
 */

public class CjMap implements Comparable<CjMap>{
    private int avg;
    private String titleName;
    List<Cj> cjList;

    public CjMap() {
    }

    public CjMap(String titleName) {
        this.titleName = titleName;
    }

    public CjMap(int avg, List<Cj> cjList) {
        this.avg = avg;
        this.cjList = cjList;
    }


    public int getAvg() {
        return avg;
    }

    public void setAvg(int avg) {
        this.avg = avg;
    }

    public List<Cj> getCjList() {
        return cjList;
    }

    public void setCjList(List<Cj> cjList) {
        this.cjList = cjList;
    }

    @Override
    public int compareTo(CjMap cjMap) {
        return avg-cjMap.getAvg();
    }

    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

}
